<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			function fun1(){
				document.cookie = "name=value; [expires=time;]"
			}
			function fun2(){
				
			}
			function fun3(){
				
			}
		</script>
	</head>
	<body>
		姓名： <input type="text">
		<button type="button" onclick="fun1()">保存Cookie</button>
		<button type="button" onclick="fun2()">载入Cookie</button>
		<button type="button" onclick="fun3()">清空Cookie</button>
	</body>
</html>	